public class MethodDemo3 {
    public MethodDemo3() {
    }

    public static void main(String[] args) {
        test();
        test("米国");
        test("日本", 10000);
    }

    public static void test() {
        System.out.println("给日本发射一枚火箭");
    }

    public static void test(String city) {
        System.out.println("给" + city + "发射一枚火箭");
    }

    public static void test(String city, int num) {
        System.out.println("给" + city + "发射" + num + "枚火箭");
    }
}
